package com.example.spider.provider.why10w.deprecated.why10org;

import com.example.spider.provider.why10w.deprecated.why10org.task.Why10orgListTask;
import com.example.spider.starter.SpiderStarter;
import com.example.spider.task.SpiderTaskQueue;

/**
 * @author lym
 */
//@Component
public class Why10orgSpiderStarter implements SpiderStarter {

    @Override
    public void startSpiders() {
        for (Why10orgCategoryEnum w : Why10orgCategoryEnum.values()) {
            Why10orgListTask listTask = Why10orgListTaskFactory.createPageTask(w.getFirstCategory(), w.getSecondCategory(), 1);
            SpiderTaskQueue.putTask(listTask);
        }
    }

}
